package com.automation.scripts.common.util.appium;

import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;

import java.time.Duration;
import java.util.List;

/**
 * 抽象Appium操作接口
 */
public interface IAppiumOperator {
    WebElement waitFor(By locator, Duration timeout) throws Exception;
    WebElement waitForOne(List<By> locators, Duration timeout) throws Exception;
    List<WebElement> waitForAll(List<By> locators, Duration timeout) throws Exception;
    void quit();
}
